/*
 * @Author: your name
 * @Date: 2020-07-15 16:47:27
 * @LastEditTime: 2020-07-21 10:39:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_test\src\store\index.js
 */ 
import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import actions from './actions'
// import getters from './getters'
// import mutations from './mutations.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  state,
  actions,
  // getters,
  // mutations,
  // plugins: [createPersistedState(
  //     {
  //         storage: window.sessionStorage,
  //         reducer(val) {
  //             return {
  //                 // 只储存state中的user
  //                 // userInfo: val.userInfo,
  //                 VehicleData: val.VehicleData,
  //                 ImgUrl:val.ImgUrl,
  //                 count:val.count,
  //                 footercolor:val.footercolor,
  //                 axiosUrl:val.axiosUrl,
  //                 userId:val.userId,
  //             }
  //         }
  //     }
  // )],
})
export default store
